<!--  -->
<template>
	<div>
		<el-date-picker ref="time" v-model="value" type="datetime" placeholder="Select date and time" />
		<el-button type="primary" @click="handleClickShow">点我显示</el-button>
		<el-button type="primary" @click="handleClickClose">点我隐藏</el-button>
	</div>
</template>

<script>
export default {
	data() {
		return {
			value:""
		};
	},

	methods: {
		handleClickShow(){
			console.log(123)
			this.$refs.time.focus()
		},
		handleClickClose(){
			this.$refs.time.blur()
		}
	}
}

</script>